// 组件库内部的 registerComponents.js 示例
import MyUI from './MyUI';
import ComponentInjector from './ComponentInjector';
import myButton from './components/Button.vue';

const injector = new ComponentInjector(MyUI);
injector.register('form', 'myButton', myButton, {
  type: 'default',
  size: 'medium'
});

//假设有第二个组件

/*
injector.register('form', 'mytext', mytext, {
type: 'default',
size: 'medium'
});

 
*/


MyUI.install = (app) => {
  app.component('MyButton', MyUI.form.myButton({}));
  //假设有第二个组件
  //app.component('MyText', MyUI.form.mytext({}));
};

export default MyUI;